home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000114-20000217 / 000255_news@columbia.edu _Wed Feb 16 15:10:18 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA03184
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 16 Feb 2000 15:10:18 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA10175
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 14 Feb 2000 09:39:08 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: AIX 4.x UUCP lockfile directory?
  11. Date: 14 Feb 2000 14:39:06 GMT
  12. Organization: Columbia University
  13. Message-ID: <88942a$9ts$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16.  
  17. In AIX, the preferred method for an application to obtain a lock on a
  18. dialout device is with the (AIX-specific) ttylock() API.  This is
  19. supposed to shield the application from having to know the details about
  20. the lockfile location, name, and contents.  But of course, we still have
  21. the same old silly scheme underneath.
  22.  
  23. A user who recently installed C-Kermit 7.0, which uses ttylock() in the
  24. politically correct manner, complains it can't obtain a dialout device:
  25. "access to lock directory denied", even though Kermit's owner, group,
  26. and permissions are the same as cu; even when Kermit is run as root.
  27. (And no, they never tried to run cu.)
  28.  
  29. It seems there is no /etc/locks on this computer.  My questions are:
  30.  
  31.  . What is the lockfile directory used by ttylock() on AIX 4.x?
  32.    It seems to be /etc/locks, but on the AIX systems I've seen, that's
  33.    symlink to /var/locks.
  34.  
  35.  . Are all AIX 4.x's supposed to have /etc/locks?  Is it supposed to
  36.    be a symlink?  Is this symlink installed by default or do sysadmins
  37.    have to put it there?
  38.  
  39.  . If the real lockfile directory is /var/locks, why does ttylock()
  40.    use /etc/locks?
  41.  
  42.  . Are there differences among AIX 4.1, 4.2, and 4.3?
  43.  
  44. - Frank